from pathlib import Path
p1 = Path('F:\\python\\第1章\\供应商信息表.xlsx')
file_suffix1 = p1.suffix
file_suffixes1 = p1.suffixes
print(file_suffix1)
print(file_suffixes1)
p2 = Path('F:\\python\\第1章\\library.tar.gz')
file_suffix2 = p2.suffix
file_suffixes2 = p2.suffixes
print(file_suffix2)
print(file_suffixes2)
